import request from '@/utils/request.js'

/**
 * 获取图形验证码
 */
export const getImgVerify = () => {
  return request.get('/user/verify/verify')
}

/**
 * 获取邮箱验证码
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const getEmailVerify = (data) => {
  return request.post('/user/verify/email', data, {timeout: 30000})
}
